using UnityEngine;

public class ChangePricel : MonoBehaviour
{
	public GameObject pricel;

	public GameObject pricelAWP;

	public SkinnedMeshRenderer playerSkin;

	public GameObject AllWeapon;

	public void AWPZoom(bool active)
	{
		if (active)
		{
			pricel.SetActive(false);
			playerSkin.enabled = false;
			AllWeapon.SetActive(false);
			Manager.Instance.s_PlayerSetup.s_RigidibodyFPSController.cam.fieldOfView = 12.5f;
			Manager.Instance.s_PlayerSetup.s_RigidibodyFPSController.mouseLook.XSensitivity = 0.5f;
			Manager.Instance.s_PlayerSetup.s_RigidibodyFPSController.mouseLook.YSensitivity = 0.5f;
			pricelAWP.SetActive(true);
		}
		else
		{
			pricelAWP.SetActive(false);
			Manager.Instance.s_PlayerSetup.s_RigidibodyFPSController.cam.fieldOfView = 60f;
			Manager.Instance.s_PlayerSetup.s_RigidibodyFPSController.mouseLook.XSensitivity = Manager.Instance.s_PlayerSetup.currentSensivity;
			Manager.Instance.s_PlayerSetup.s_RigidibodyFPSController.mouseLook.YSensitivity = Manager.Instance.s_PlayerSetup.currentSensivity;
			playerSkin.enabled = true;
			AllWeapon.SetActive(true);
			pricel.SetActive(true);
		}
	}
}
